<?
/*
-------------------------------
Script - EvaGb
-------------------------------
File - display.class.php
-------------------------------
Function - Класс Вид
-------------------------------
*/
include_once $GLOBALS['_gb_cnf']['dir']."/sis/inc/gzip_inc.php";
class display {

    function info($text){
        $tpl=locator::get()->tpl();
        $tpl->set("info",$text);
        return $tpl->load("error.tpl");
    }
    function result($res) {
        $tpl=locator::get()->tpl();
        $db=locator::get()->db();
        $tpl->set($res);
        $res=$tpl->load("main.tpl");
        $res.="\r\n<!-- Coded By Mr.M.I.T. [EvaGb v.".locator::get()->ver."] -->";
        $res.="\r\n<!-- Запросов к БД {$db->sqls} -->";
        return $GLOBALS['_gb_cnf']['usegzip']?gzip($res):$res;
    }
}
?>
